package LearnDataStructure.a_线性结构.栈;

/**
 * @version: 1.0
 * @Author: wuqiu
 * @date: 2023-07-04 10:33
 * @description: LeetcodeLearnAlgorithm -> LearnDataStructure.a_线性结构.栈
 */
public class StackNode<T> {
    T data;
    StackNode<T> pre;
    StackNode<T> next;

    public StackNode(T data) {
        this.data = data;
    }

    public StackNode() {
    }

    @Override
    public String toString() {
        return "StackNode{" +
                "data=" + data +
                ", pre=" + pre +
                ", next=" + next +
                '}';
    }
}
